<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>

<body>

<div>
    <h1>C++ - MPGs<br /></h1>
    <p>
        #include &lt;iostream&gt;<br />
        using namespace std;
    </p>
    <p>
        int main(){ <br />
        <br />
        float milesTraveled=45.6;<br />
        float gallonsUsed=2.5;<br />
        float milesPerGallon;<br />
        <br />
        /* Calculate miles per gallon below using the predefined variables*/
    </p>
    <p>
    <form name="input" action="handlecode.php" method="get">
        <textarea cols="65" rows="10" name="mpgcode"> </textarea> <br>
        </p>
        <p>cout &lt;&lt; &quot;Miles per gallon = &quot; &lt;&lt; milesPerGallon &lt;&lt; endl;</p>
        <p>return 0;</p>
        <p>}</p>
        <input type="submit" value="Submit" />
        </form>
    <p>&nbsp;</p>
    <h2>&nbsp;</h2>
</div>
</body>
</html>